home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / t3_1 / risc_src.lha / risc_sources / xlib / X.cdecl < prev    next >
Text File  |  1990-05-29  |  19KB  |  701 lines

  1. ;;; X window system definitions for Scheme->C
  2. ;;;
  3. ;;; derived from:
  4. ;;;
  5. ;;;    $XConsortium: X.h,v 1.66 88/09/06 15:55:56 jim Exp $
  6. ;;;
  7.  
  8. ;;; Definitions for the X window system likely to be used by applications
  9.  
  10. ; Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts,
  11. ; and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  12. ;
  13. ;                         All Rights Reserved
  14. ;
  15. ; Permission to use, copy, modify, and distribute this software and its 
  16. ; documentation for any purpose and without fee is hereby granted, 
  17. ; provided that the above copyright notice appear in all copies and that
  18. ; both that copyright notice and this permission notice appear in 
  19. ; supporting documentation, and that the names of Digital or MIT not be
  20. ; used in advertising or publicity pertaining to distribution of the
  21. ; software without specific, written prior permission.  
  22. ;
  23. ; DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  24. ; ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  25. ; DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  26. ; ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  27. ; WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  28. ; ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  29. ; SOFTWARE.
  30.  
  31. (const X_PROTOCOL    11)        ; current protocol version
  32. (const X_PROTOCOL_REVISION 0)        ; current minor version
  33.  
  34. ;; New base types
  35.  
  36. (typedef unsigned unsignedlong)
  37. (typedef unsigned unsignedint)
  38.  
  39. (typedef (unsigned 0) unsignedA)
  40. (typedef unsignedA unsignedlongA)
  41. (typedef unsignedA unsignedintA)
  42.  
  43. (typedef (unsignedA *) unsignedAP)
  44. (typedef unsignedAP unsignedlongAP)
  45. (typedef unsignedAP unsignedintAP)
  46.  
  47. (typedef (unsigned *proc) unsignedPROC)
  48. (typedef unsignedPROC unsignedlongPROC)
  49. (typedef unsignedPROC unsignedintPROC)
  50.  
  51. (typedef char unsignedchar)
  52. (typedef (char *) charP)
  53. (typedef (char 0) charA)
  54. (typedef (charA *) charAP)
  55. (typedef (charP 0) charPA)
  56. (typedef (charPA *) charPAP)
  57.  
  58. (typedef shortint short)
  59. (typedef shortunsigned unsignedshort)
  60.  
  61. (typedef int long)
  62. (typedef (int *proc) intPROC)
  63. (typedef (int *) intP)
  64. (typedef (int 0) intA)
  65. (typedef (intA *) intAP)
  66.  
  67. ;; Resources
  68.  
  69. (typedef unsignedlong XID)
  70.  
  71. (typedef XID Window)
  72. (typedef XID Drawable)
  73. (typedef XID Font)
  74. (typedef XID Pixmap)
  75. (typedef XID Cursor)
  76. (typedef XID Colormap)
  77.  
  78. (typedef unsignedA ColormapA)
  79. (typedef unsignedAP ColormapAP)
  80.  
  81. (typedef XID GContext)
  82. (typedef XID KeySym)
  83.  
  84. (typedef unsignedA KeySymA)
  85. (typedef unsignedAP KeySymAP)
  86.  
  87. (typedef unsignedA WindowA)
  88. (typedef unsignedAP WindowAP)
  89.  
  90. (typedef unsignedlong Mask)
  91.  
  92. (typedef unsignedlong Atom)
  93. (typedef unsignedA AtomA)
  94. (typedef unsignedAP AtomAP)
  95.  
  96. (typedef unsignedlong VisualID)
  97.  
  98. (typedef unsignedlong Time)
  99.  
  100. (typedef unsignedchar KeyCode)
  101.  
  102. ;;***************************************************************
  103. ;; RESERVED RESOURCE AND CONSTANT DEFINITIONS
  104. ;;****************************************************************
  105.  
  106. (const None                 0)    ;; universal null resource or null atom 
  107.  
  108. (const ParentRelative       1)    ;; background pixmap in CreateWindow
  109.                 ;;  and ChangeWindowAttributes 
  110.  
  111. (const CopyFromParent       0)    ;; border pixmap in CreateWindow
  112.                 ;;     and ChangeWindowAttributes
  113.                 ;; special VisualID and special window
  114.                 ;;     class passed to CreateWindow 
  115.  
  116. (const PointerWindow        0)    ;; destination window in SendEvent 
  117. (const InputFocus           1)    ;; destination window in SendEvent 
  118.  
  119. (const PointerRoot          1)    ;; focus window in SetInputFocus 
  120.  
  121. (const AnyPropertyType      0)    ;; special Atom, passed to GetProperty 
  122.  
  123. (const AnyKey            0)    ;; special Key Code, passed to GrabKey 
  124.  
  125. (const AnyButton            0)    ;; special Button Code, passed to GrabButton 
  126.  
  127. (const AllTemporary         0)    ;; special Resource ID passed to KillClient 
  128.  
  129. (const CurrentTime          0)    ;; special Time 
  130.  
  131. (const NoSymbol                 0)    ;; special KeySym 
  132.  
  133. ;;**************************************************************** 
  134. ;;* EVENT DEFINITIONS 
  135. ;;****************************************************************
  136.  
  137. ;; Input Event Masks. Used as event-mask window attribute and as arguments
  138. ;; to Grab requests.  Not to be confused with event names.  
  139.  
  140. (const NoEventMask            0)
  141. (const KeyPressMask            (expt 2 0))  
  142. (const KeyReleaseMask            (expt 2 1))  
  143. (const ButtonPressMask            (expt 2 2))  
  144. (const ButtonReleaseMask        (expt 2 3))  
  145. (const EnterWindowMask            (expt 2 4))  
  146. (const LeaveWindowMask            (expt 2 5))  
  147. (const PointerMotionMask        (expt 2 6))  
  148. (const PointerMotionHintMask        (expt 2 7))  
  149. (const Button1MotionMask        (expt 2 8))  
  150. (const Button2MotionMask        (expt 2 9))  
  151. (const Button3MotionMask        (expt 2 10)) 
  152. (const Button4MotionMask        (expt 2 11)) 
  153. (const Button5MotionMask        (expt 2 12)) 
  154. (const ButtonMotionMask            (expt 2 13)) 
  155. (const KeymapStateMask            (expt 2 14))
  156. (const ExposureMask            (expt 2 15))
  157. (const VisibilityChangeMask        (expt 2 16))
  158. (const StructureNotifyMask        (expt 2 17))
  159. (const ResizeRedirectMask        (expt 2 18))
  160. (const SubstructureNotifyMask        (expt 2 19))
  161. (const SubstructureRedirectMask        (expt 2 20))
  162. (const FocusChangeMask            (expt 2 21))
  163. (const PropertyChangeMask        (expt 2 22))
  164. (const ColormapChangeMask        (expt 2 23))
  165. (const OwnerGrabButtonMask        (expt 2 24))
  166.  
  167. ;; Event names.  Used in "type" field in XEvent structures.  Not to be
  168. ;; confused with event masks above.  They start from 2 because 0 and 1
  169. ;; are reserved in the protocol for errors and replies. 
  170.  
  171. (const KeyPress            2)
  172. (const KeyRelease        3)
  173. (const ButtonPress        4)
  174. (const ButtonRelease        5)
  175. (const MotionNotify        6)
  176. (const EnterNotify        7)
  177. (const LeaveNotify        8)
  178. (const FocusIn            9)
  179. (const FocusOut            10)
  180. (const KeymapNotify        11)
  181. (const Expose            12)
  182. (const GraphicsExpose        13)
  183. (const NoExpose            14)
  184. (const VisibilityNotify        15)
  185. (const CreateNotify        16)
  186. (const DestroyNotify        17)
  187. (const UnmapNotify        18)
  188. (const MapNotify        19)
  189. (const MapRequest        20)
  190. (const ReparentNotify        21)
  191. (const ConfigureNotify        22)
  192. (const ConfigureRequest        23)
  193. (const GravityNotify        24)
  194. (const ResizeRequest        25)
  195. (const CirculateNotify        26)
  196. (const CirculateRequest        27)
  197. (const PropertyNotify        28)
  198. (const SelectionClear        29)
  199. (const SelectionRequest        30)
  200. (const SelectionNotify        31)
  201. (const ColormapNotify        32)
  202. (const ClientMessage        33)
  203. (const MappingNotify        34)
  204. (const LASTEvent        35)    ;; must be bigger than any event # 
  205.  
  206.  
  207. ;; Key masks. Used as modifiers to GrabButton and GrabKey, results of
  208. ;; QueryPointer, state in various key-, mouse-, and button-related events. 
  209.  
  210. (const ShiftMask    (expt 2 0))
  211. (const LockMask        (expt 2 1))
  212. (const ControlMask    (expt 2 2))
  213. (const Mod1Mask        (expt 2 3))
  214. (const Mod2Mask        (expt 2 4))
  215. (const Mod3Mask        (expt 2 5))
  216. (const Mod4Mask        (expt 2 6))
  217. (const Mod5Mask        (expt 2 7))
  218.  
  219. ;; modifier names.  Used to build a SetModifierMapping request or
  220. ;; to read a GetModifierMapping request.  These correspond to the
  221. ;; masks defined above.
  222.  
  223. (const ShiftMapIndex        0)
  224. (const LockMapIndex        1)
  225. (const ControlMapIndex        2)
  226. (const Mod1MapIndex        3)
  227. (const Mod2MapIndex        4)
  228. (const Mod3MapIndex        5)
  229. (const Mod4MapIndex        6)
  230. (const Mod5MapIndex        7)
  231.  
  232. ;; button masks.  Used in same manner as Key masks above. Not to be confused
  233. ;; with button names below. 
  234.  
  235. (const Button1Mask        (expt 2 8))
  236. (const Button2Mask        (expt 2 9))
  237. (const Button3Mask        (expt 2 10))
  238. (const Button4Mask        (expt 2 11))
  239. (const Button5Mask        (expt 2 12))
  240.  
  241. (const AnyModifier        (expt 2 15))  ;; used in GrabButton, GrabKey 
  242.  
  243.  
  244. ;; button names. Used as arguments to GrabButton and as detail in ButtonPress
  245. ;; and ButtonRelease events.  Not to be confused with button masks above.
  246. ;; Note that 0 is already defined above as "AnyButton".  
  247.  
  248. (const Button1            1)
  249. (const Button2            2)
  250. (const Button3            3)
  251. (const Button4            4)
  252. (const Button5            5)
  253.  
  254. ;; Notify modes 
  255.  
  256. (const NotifyNormal        0)
  257. (const NotifyGrab        1)
  258. (const NotifyUngrab        2)
  259. (const NotifyWhileGrabbed    3)
  260.  
  261. (const NotifyHint        1)    ;; for MotionNotify events 
  262.                
  263. ;; Notify detail 
  264.  
  265. (const NotifyAncestor        0)
  266. (const NotifyVirtual        1)
  267. (const NotifyInferior        2)
  268. (const NotifyNonlinear        3)
  269. (const NotifyNonlinearVirtual    4)
  270. (const NotifyPointer        5)
  271. (const NotifyPointerRoot    6)
  272. (const NotifyDetailNone        7)
  273.  
  274. ;; Visibility notify 
  275.  
  276. (const VisibilityUnobscured        0)
  277. (const VisibilityPartiallyObscured    1)
  278. (const VisibilityFullyObscured        2)
  279.  
  280. ;; Circulation request 
  281.  
  282. (const PlaceOnTop        0)
  283. (const PlaceOnBottom        1)
  284.  
  285. ;; protocol families 
  286.  
  287. (const FamilyInternet        0)
  288. (const FamilyDECnet        1)
  289. (const FamilyChaos        2)
  290.  
  291. ;; Property notification 
  292.  
  293. (const PropertyNewValue        0)
  294. (const PropertyDelete        1)
  295.  
  296. ;; Color Map notification 
  297.  
  298. (const ColormapUninstalled    0)
  299. (const ColormapInstalled    1)
  300.  
  301. ;; GrabPointer, GrabButton, GrabKeyboard, GrabKey Modes 
  302.  
  303. (const GrabModeSync        0)
  304. (const GrabModeAsync        1)
  305.  
  306. ;; GrabPointer, GrabKeyboard reply status 
  307.  
  308. (const GrabSuccess        0)
  309. (const AlreadyGrabbed        1)
  310. (const GrabInvalidTime        2)
  311. (const GrabNotViewable        3)
  312. (const GrabFrozen        4)
  313.  
  314. ;; AllowEvents modes 
  315.  
  316. (const AsyncPointer        0)
  317. (const SyncPointer        1)
  318. (const ReplayPointer        2)
  319. (const AsyncKeyboard        3)
  320. (const SyncKeyboard        4)
  321. (const ReplayKeyboard        5)
  322. (const AsyncBoth        6)
  323. (const SyncBoth            7)
  324.  
  325. ;; Used in SetInputFocus, GetInputFocus 
  326.  
  327. (const RevertToNone        None)
  328. (const RevertToPointerRoot    PointerRoot)
  329. (const RevertToParent        2)
  330.  
  331. ;;****************************************************************
  332. ;;* ERROR CODES 
  333. ;;****************************************************************
  334.  
  335. (const Success           0)    ;; everything's okay 
  336. (const BadRequest       1)    ;; bad request code 
  337. (const BadValue              2)    ;; int parameter out of range 
  338. (const BadWindow       3)    ;; parameter not a Window 
  339. (const BadPixmap       4)    ;; parameter not a Pixmap 
  340. (const BadAtom           5)    ;; parameter not an Atom 
  341. (const BadCursor       6)    ;; parameter not a Cursor 
  342. (const BadFont           7)    ;; parameter not a Font 
  343. (const BadMatch              8)    ;; parameter mismatch 
  344. (const BadDrawable       9)    ;; parameter not a Pixmap or Window 
  345. (const BadAccess      10)    ;; depending on context:
  346.                 ;; - key/button already grabbed
  347.                 ;; - attempt to free an illegal 
  348.                 ;;   cmap entry 
  349.                 ;; - attempt to store into a read-only 
  350.                 ;;   color map entry.
  351.                  ;; - attempt to modify the access control
  352.                 ;;   list from other than the local host.
  353.                 
  354. (const BadAlloc            11)    ;; insufficient resources 
  355. (const BadColor            12)    ;; no such colormap 
  356. (const BadGC          13)    ;; parameter not a GC 
  357. (const BadIDChoice      14)    ;; choice not in range or already used 
  358. (const BadName          15)    ;; font or color name doesn't exist 
  359. (const BadLength      16)    ;; Request length incorrect 
  360. (const BadImplementation  17)    ;; server is defective 
  361.  
  362. (const FirstExtensionError    128)
  363. (const LastExtensionError    255)
  364.  
  365. ;;****************************************************************
  366. ;;* WINDOW DEFINITIONS 
  367. ;;****************************************************************
  368.  
  369. ;; Window classes used by CreateWindow 
  370. ;; Note that CopyFromParent is already defined as 0 above 
  371.  
  372. (const InputOutput        1)
  373. (const InputOnly        2)
  374.  
  375. ;; Window attributes for CreateWindow and ChangeWindowAttributes 
  376.  
  377. (const CWBackPixmap        (expt 2 0))
  378. (const CWBackPixel        (expt 2 1))
  379. (const CWBorderPixmap        (expt 2 2))
  380. (const CWBorderPixel            (expt 2 3))
  381. (const CWBitGravity        (expt 2 4))
  382. (const CWWinGravity        (expt 2 5))
  383. (const CWBackingStore           (expt 2 6))
  384. (const CWBackingPlanes            (expt 2 7))
  385. (const CWBackingPixel            (expt 2 8))
  386. (const CWOverrideRedirect    (expt 2 9))
  387. (const CWSaveUnder        (expt 2 10))
  388. (const CWEventMask        (expt 2 11))
  389. (const CWDontPropagate            (expt 2 12))
  390. (const CWColormap        (expt 2 13))
  391. (const CWCursor                (expt 2 14))
  392.  
  393. ;; ConfigureWindow structure 
  394.  
  395. (const CWX            (expt 2 0))
  396. (const CWY            (expt 2 1))
  397. (const CWWidth            (expt 2 2))
  398. (const CWHeight            (expt 2 3))
  399. (const CWBorderWidth        (expt 2 4))
  400. (const CWSibling        (expt 2 5))
  401. (const CWStackMode        (expt 2 6))
  402.  
  403.  
  404. ;; Bit Gravity 
  405.  
  406. (const ForgetGravity        0)
  407. (const NorthWestGravity        1)
  408. (const NorthGravity        2)
  409. (const NorthEastGravity        3)
  410. (const WestGravity        4)
  411. (const CenterGravity        5)
  412. (const EastGravity        6)
  413. (const SouthWestGravity        7)
  414. (const SouthGravity        8)
  415. (const SouthEastGravity        9)
  416. (const StaticGravity        10)
  417.  
  418. ;; Window gravity + bit gravity above 
  419.  
  420. (const UnmapGravity        0)
  421.  
  422. ;; Used in CreateWindow for backing-store hint 
  423.  
  424. (const NotUseful               0)
  425. (const WhenMapped              1)
  426. (const Always                  2)
  427.  
  428. ;; Used in GetWindowAttributes reply 
  429.  
  430. (const IsUnmapped        0)
  431. (const IsUnviewable        1)
  432. (const IsViewable        2)
  433.  
  434. ;; Used in ChangeSaveSet 
  435.  
  436. (const SetModeInsert           0)
  437. (const SetModeDelete           1)
  438.  
  439. ;; Used in ChangeCloseDownMode 
  440.  
  441. (const DestroyAll              0)
  442. (const RetainPermanent         1)
  443. (const RetainTemporary         2)
  444.  
  445. ;; Window stacking method (in configureWindow) 
  446.  
  447. (const Above                   0)
  448. (const Below                   1)
  449. (const TopIf                   2)
  450. (const BottomIf                3)
  451. (const Opposite                4)
  452.  
  453. ;; Circulation direction 
  454.  
  455. (const RaiseLowest             0)
  456. (const LowerHighest            1)
  457.  
  458. ;; Property modes 
  459.  
  460. (const PropModeReplace         0)
  461. (const PropModePrepend         1)
  462. (const PropModeAppend          2)
  463.  
  464. ;;****************************************************************
  465. ;;* GRAPHICS DEFINITIONS
  466. ;;****************************************************************
  467.  
  468. ;; graphics functions, as in GC.alu 
  469.  
  470. (const    GXclear            #x0)        ;; 0 
  471. (const GXand            #x1)        ;; src AND dst 
  472. (const GXandReverse        #x2)        ;; src AND NOT dst 
  473. (const GXcopy            #x3)        ;; src 
  474. (const GXandInverted        #x4)        ;; NOT src AND dst 
  475. (const    GXnoop            #x5)        ;; dst 
  476. (const GXxor            #x6)        ;; src XOR dst 
  477. (const GXor            #x7)        ;; src OR dst 
  478. (const GXnor            #x8)        ;; NOT src AND NOT dst 
  479. (const GXequiv            #x9)        ;; NOT src XOR dst 
  480. (const GXinvert            #xa)        ;; NOT dst 
  481. (const GXorReverse        #xb)        ;; src OR NOT dst 
  482. (const GXcopyInverted        #xc)        ;; NOT src 
  483. (const GXorInverted        #xd)        ;; NOT src OR dst 
  484. (const GXnand            #xe)        ;; NOT src OR NOT dst 
  485. (const GXset            #xf)        ;; 1 
  486.  
  487. ;; LineStyle 
  488.  
  489. (const LineSolid        0)
  490. (const LineOnOffDash        1)
  491. (const LineDoubleDash        2)
  492.  
  493. ;; capStyle 
  494.  
  495. (const CapNotLast        0)
  496. (const CapButt            1)
  497. (const CapRound            2)
  498. (const CapProjecting        3)
  499.  
  500. ;; joinStyle 
  501.  
  502. (const JoinMiter        0)
  503. (const JoinRound        1)
  504. (const JoinBevel        2)
  505.  
  506. ;; fillStyle 
  507.  
  508. (const FillSolid        0)
  509. (const FillTiled        1)
  510. (const FillStippled        2)
  511. (const FillOpaqueStippled    3)
  512.  
  513. ;; fillRule 
  514.  
  515. (const EvenOddRule        0)
  516. (const WindingRule        1)
  517.  
  518. ;; subwindow mode 
  519.  
  520. (const ClipByChildren        0)
  521. (const IncludeInferiors        1)
  522.  
  523. ;; SetClipRectangles ordering 
  524.  
  525. (const Unsorted            0)
  526. (const YSorted            1)
  527. (const YXSorted            2)
  528. (const YXBanded            3)
  529.  
  530. ;; CoordinateMode for drawing routines 
  531.  
  532. (const CoordModeOrigin        0)    ;; relative to the origin 
  533. (const CoordModePrevious           1)    ;; relative to previous point 
  534.  
  535. ;; Polygon shapes 
  536.  
  537. (const Complex            0)    ;; paths may intersect 
  538. (const Nonconvex        1)    ;; no paths intersect, but not convex 
  539. (const Convex            2)    ;; wholly convex 
  540.  
  541. ;; Arc modes for PolyFillArc 
  542.  
  543. (const ArcChord            0)    ;; join endpoints of arc 
  544. (const ArcPieSlice        1)    ;; join endpoints to center of arc 
  545.  
  546. ;; GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into
  547. ;; GC.stateChanges 
  548.  
  549. (const GCFunction                  (expt 2 0))
  550. (const GCPlaneMask                 (expt 2 1))
  551. (const GCForeground                (expt 2 2))
  552. (const GCBackground                (expt 2 3))
  553. (const GCLineWidth                 (expt 2 4))
  554. (const GCLineStyle                 (expt 2 5))
  555. (const GCCapStyle                  (expt 2 6))
  556. (const GCJoinStyle        (expt 2 7))
  557. (const GCFillStyle        (expt 2 8))
  558. (const GCFillRule        (expt 2 9)) 
  559. (const GCTile            (expt 2 10))
  560. (const GCStipple        (expt 2 11))
  561. (const GCTileStipXOrigin    (expt 2 12))
  562. (const GCTileStipYOrigin    (expt 2 13))
  563. (const GCFont             (expt 2 14))
  564. (const GCSubwindowMode        (expt 2 15))
  565. (const GCGraphicsExposures         (expt 2 16))
  566. (const GCClipXOrigin        (expt 2 17))
  567. (const GCClipYOrigin        (expt 2 18))
  568. (const GCClipMask        (expt 2 19))
  569. (const GCDashOffset        (expt 2 20))
  570. (const GCDashList        (expt 2 21))
  571. (const GCArcMode        (expt 2 22))
  572.  
  573. (const GCLastBit        22)
  574. ;;****************************************************************
  575. ;;* FONTS 
  576. ;;****************************************************************
  577.  
  578. ;; used in QueryFont -- draw direction 
  579.  
  580. (const FontLeftToRight        0)
  581. (const FontRightToLeft        1)
  582.  
  583. (const FontChange        255)
  584.  
  585. ;;****************************************************************
  586. ;;*  IMAGING 
  587. ;;****************************************************************
  588.  
  589. ;; ImageFormat -- PutImage, GetImage 
  590.  
  591. (const XYBitmap            0)    ;; depth 1, XYFormat 
  592. (const XYPixmap            1)    ;; depth == drawable depth 
  593. (const ZPixmap            2)    ;; depth == drawable depth 
  594.  
  595. ;;****************************************************************
  596. ;;*  COLOR MAP STUFF 
  597. ;;****************************************************************
  598.  
  599. ;; For CreateColormap 
  600.  
  601. (const AllocNone        0)    ;; create map with no entries 
  602. (const AllocAll            1)    ;; allocate entire map writeable 
  603.  
  604.  
  605. ;; Flags used in StoreNamedColor, StoreColors 
  606.  
  607. (const DoRed            (expt 2 0))
  608. (const DoGreen            (expt 2 1))
  609. (const DoBlue            (expt 2 2))
  610.  
  611. ;;****************************************************************
  612. ;;* CURSOR STUFF
  613. ;;****************************************************************
  614.  
  615. ;; QueryBestSize Class 
  616.  
  617. (const CursorShape        0)    ;; largest size that can be displayed 
  618. (const TileShape        1)    ;; size tiled fastest 
  619. (const StippleShape        2)    ;; size stippled fastest 
  620.  
  621. ;;**************************************************************** 
  622. ;;* KEYBOARD/POINTER STUFF
  623. ;;****************************************************************
  624.  
  625. (const AutoRepeatModeOff    0)
  626. (const AutoRepeatModeOn        1)
  627. (const AutoRepeatModeDefault    2)
  628.  
  629. (const LedModeOff        0)
  630. (const LedModeOn        1)
  631.  
  632. ;; masks for ChangeKeyboardControl 
  633.  
  634. (const KBKeyClickPercent    (expt 2 0))
  635. (const KBBellPercent        (expt 2 1))
  636. (const KBBellPitch        (expt 2 2))
  637. (const KBBellDuration        (expt 2 3))
  638. (const KBLed            (expt 2 4))
  639. (const KBLedMode        (expt 2 5))
  640. (const KBKey            (expt 2 6))
  641. (const KBAutoRepeatMode        (expt 2 7))
  642.  
  643. (const MappingSuccess         0)
  644. (const MappingBusy            1)
  645. (const MappingFailed        2)
  646.  
  647. (const MappingModifier        0)
  648. (const MappingKeyboard        1)
  649. (const MappingPointer        2)
  650.  
  651. ;;****************************************************************
  652. ;;* SCREEN SAVER STUFF 
  653. ;;****************************************************************
  654.  
  655. (const DontPreferBlanking    0)
  656. (const PreferBlanking        1)
  657. (const DefaultBlanking        2)
  658.  
  659. (const DisableScreenSaver    0)
  660. (const DisableScreenInterval    0)
  661.  
  662. (const DontAllowExposures    0)
  663. (const AllowExposures        1)
  664. (const DefaultExposures        2)
  665.  
  666. ;; for ForceScreenSaver 
  667.  
  668. (const ScreenSaverReset     0)
  669. (const ScreenSaverActive     1)
  670.  
  671. ;;****************************************************************
  672. ;;* HOSTS AND CONNECTIONS
  673. ;;****************************************************************
  674.  
  675. ;; for ChangeHosts 
  676.  
  677. (const HostInsert        0)
  678. (const HostDelete        1)
  679.  
  680. ;; for ChangeAccessControl 
  681.  
  682. (const EnableAccess        1)      
  683. (const DisableAccess        0)
  684.  
  685. ;; Display classes  used in opening the connection 
  686. ;; * Note that the statically allocated ones are even numbered and the
  687. ;; * dynamically changeable ones are odd numbered 
  688.  
  689. (const StaticGray        0)
  690. (const GrayScale        1)
  691. (const StaticColor        2)
  692. (const PseudoColor        3)
  693. (const TrueColor        4)
  694. (const DirectColor        5)
  695.  
  696.  
  697. ;; Byte order  used in imageByteOrder and bitmapBitOrder 
  698.  
  699. (const LSBFirst        0)
  700. (const MSBFirst        1)
  701.